using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Krile.Kernel.Control
{
    /// <summary>
    /// Config page (You should reflect state on Load method.)
    /// </summary>
    public partial class ConfigPage : UserControl
    {
        /// <summary>
        /// constructor
        /// </summary>
        public ConfigPage()
        {
            isLoaded = false;
            InitializeComponent();
        }

        private bool isLoaded;
        /// <summary>
        /// If this property raise "false", you haven't to apply config.
        /// </summary>
        public bool IsLoaded
        {
            get { return isLoaded; }
        }

        protected override void OnLoad(EventArgs e)
        {
            isLoaded = true;
            base.OnLoad(e);
        }

        /// <summary>
        /// Apply and reflect configuration
        /// </summary>
        public virtual void Apply() { }

    }
}
